/*
 MainMenuViewController.h
 Date Created: February 16, 2010
 
 Author: Karol Krizka <kkrizka@gmail.com>
 
 Copyright (C) 2010 Green-Power
 
 URL: http://code.google.com/p/green-power
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 $Id$
 */
#import <UIKit/UIKit.h>

#import "RecyclingViewController.h"

#import "profilemngt/PMProfileList.h"

#import "sortinggame/SGSortingGameViewController.h"

@interface MainMenuViewController : UIViewController {
  // References to UI elements
  IBOutlet UIButton *profileMngtButton;
  IBOutlet UIButton *resumeGameButton;
  
  PMProfileList *profileList;
  PMProfile *lastActiveProfile;
  
  
  // Used for cashing views (aka saving their previous status)
  SGSortingGameViewController *sortingGameViewController;
  RecyclingViewController *recyclingViewController;
}

@property (nonatomic,retain) PMProfileList *profileList;

/**
 * Start a new game
 */
- (IBAction)showNewGame:(id)sender;

/**
 * Resume a game, if it exists
 */
- (IBAction)showResumeGame:(id)sender;

/**
 * Show the recycling tool box
 */
- (IBAction)showRecycling:(id)sender;

/**
 * Show profile management
 */
- (IBAction)showProfileMngt:(id)sender;

/**
 * Show list of high scores
 */
- (IBAction)showHighScores:(id)sender;

/**
 * Show the about view
 */
- (IBAction)showAbout:(id)sender;

/**
 * Updates buttons to the correct state of the application. This includes:
 * <ul>
 *  <li>Correct active profile name</li>
 * </ul>
 */
- (void)updateButtons;

@end
